// component/chatInfo/emo/emo.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    emojiArr: [
      { emoji: '😠', code: '#emo30_' },
      { emoji: '😩', code: '#emo31_' },
      { emoji: '😲', code: '#emo32_' },
      { emoji: '😞', code: '#emo33_' },
      { emoji: '😵', code: '#emo34_' },
      { emoji: '😰', code: '#emo35_' },
      { emoji: '😒', code: '#emo36_' },
      { emoji: '😍', code: '#emo37_' },
      { emoji: '😤', code: '#emo38_' },
      { emoji: '😜', code: '#emo39_' },
      { emoji: '😝', code: '#emo40_' },
      { emoji: '😋', code: '#emo41_' },
      { emoji: '😘', code: '#emo42_' },
      { emoji: '😚', code: '#emo43_' },
      { emoji: '😷', code: '#emo44_' },
      { emoji: '😳', code: '#emo45_' },
      { emoji: '😃', code: '#emo46_' },
      { emoji: '😅', code: '#emo47_' },
      { emoji: '😆', code: '#emo48_' },
      { emoji: '😁', code: '#emo49_' },
      { emoji: '😂', code: '#emo50_' },
      { emoji: '😊', code: '#emo51_' },
      { emoji: '😄', code: '#emo53_' },
      { emoji: '😢', code: '#emo54_' },
      { emoji: '😭', code: '#emo55_' },
      { emoji: '😨', code: '#emo56_' },
      { emoji: '😣', code: '#emo57_' },
      { emoji: '😡', code: '#emo58_' },
      { emoji: '😌', code: '#emo59_' },
      { emoji: '😖', code: '#emo60_' },
      { emoji: '😔', code: '#emo61_' },
      { emoji: '😱', code: '#emo62_' },
      { emoji: '😪', code: '#emo63_' },
      { emoji: '😏', code: '#emo64_' },
      { emoji: '😓', code: '#emo65_' },
      { emoji: '😥', code: '#emo66_' },
      { emoji: '😫', code: '#emo67_' },
      { emoji: '😉', code: '#emo68_' },
    ],
    //用于存储当前表情
    currentEmoji: {},

  },

  observers:{

  },
  /**
   * 组件的方法列表
   */
  methods: {
    // 删掉文本
    remvoeText(){
      console.log("fesfes")
    },
    pickEmo(e){
      let temp = e.currentTarget.dataset.code
      // let temp_1 = temp.split(/[\#,_]/)
      // let newtemp = temp_1.filter(value => value)[0]
      // console.log(newtemp,"yaohf")
      // console.log(e.currentTarget.dataset.emoji)
      this.triggerEvent("emoFnct",temp)
    }
    
  }
})
